import java.util.Scanner;

public class Part3_3 {
    public static void main(String[] args) {
        int i = 20;
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入您的购物价格：");
        double pay = reader.nextDouble();
        System.out.println("亲，包邮吗？(请输入yes或no)");
        String answer = reader.next();
        switch (answer){
            case "yes":
                System.out.println("实际付款价格即为购物价格为"+pay);
                break;
            case "no":
                pay = pay + i;
                System.out.println("实际付款价格即为购物价格为"+pay);
                break;

        }

    }

}
